package com.opc.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author 作者
 * @since 2023-04-03
 */
@Getter
@Setter
@TableName("t_consume_statistic")
public class ConsumeStatistic implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 0 按天统计
     */
    @TableField("type")
    private Integer type;

    /**
     * 消耗量
     */
    @TableField("consume_val")
    private Long consumeVal;

    /**
     * 统计时间
     */
    @TableField("statistic_time")
    private Date statisticTime;

    @TableField("production_line")
    private String productionLine;

    /**
     * 是否删除 0正常 1删除
     */
    @TableField("is_delete")
    private Integer isDelete;

    /**
     * 创建时间
     */
    @TableField(value = "create_time")
    private Date createTime;

    /**
     * 更新时间
     */
    @TableField("update_time")
    private Date updateTime;

    @TableField("station_num")
    private String stationNum;

    @TableField("device_code")
    private String deviceCode;
}
